import http from '@/utils/request'

//获取列表
export const getListApi = (params: object) =>
    http({
        url: 'dishes/list',
        method: 'get',
        params
    })

//新增
export const postSaveApi = (data: Object) =>
    http({
        url: 'dishes/save',
        method: 'post',
        data
    })

//删除
export const getdeleteApi = (params: Object) => {
    http({
        url: 'dishes/delete',
        method: 'get',
        params
    })
}
//修改
export const postUpdateApi = (data: Object) =>
    http({
        url: 'dishes/modify',
        method: 'post',
        data
    })